package com.wuwei.elearning.question.mapper;

import com.wuwei.elearning.question.domain.SelfTestResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.cglib.core.Local;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 自我测试结果表 Mapper 接口
 * </p>
 *
 * @author wuwei
 * @since 2024-04-10
 */
public interface SelfTestResultMapper extends BaseMapper<SelfTestResult> {

    List<SelfTestResult> myConditionQuery(@Param("selectedId") Long selectedId, @Param("account")Long account,
                                          @Param("startDate") LocalDateTime startDate,@Param("endDate") LocalDateTime endDate,
                                          @Param("pageSize")Integer pageSize, @Param("skipPages")Integer skipPages);

    Long myConditionCountQuery(@Param("selectedId") Long selectedId, @Param("account")Long account,
                               @Param("startDate") LocalDateTime startDate,@Param("endDate") LocalDateTime endDate);
}
